package com.chy.order_meal.dao;

import com.chy.order_meal.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<User,Integer> {


      User findFirstByEmailOrPhone(String email,String phone);

      User findFirstByEmail(String email);

      User findFirstByPhone(String phone);


}
